package file.a04;

import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.PrintStream;

public class PrintStreamTest {
    public static void main(String[] args) {
        try(FileOutputStream fos=new FileOutputStream("fosps.txt");
            PrintStream ps=new PrintStream(fos);
        ){
            ps.println("哈哈哈");
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
